package com.example.dao.comment;

import com.example.pojo.Comment;
import com.example.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: demo
 * @description: 评论列表
 * @author: yc
 * @create: 2022-12-14 10:36
 **/

@Mapper
@Repository
public interface CourseCommentDao {


    /**
    * @Description: 课程评论
    * @Param: * @param null
    * @return:
    * @Author: yc
    * @Date: 2023/2/5 18:22
    */
    List<Comment> getCommentList();


    /**
    * @Description: 根据评论状态查询
    * @Param: * @param null
    * @return:
    * @Author: yc
    * @Date: 2023/2/5 18:22
    */
    List<Comment> getCommentState(@Param("state") Integer state,@Param("account") String account,@Param("nickname") String nickname);


    /**
    * @Description: 历史评论次数
    * @Param: * @param null
    * @return:
    * @Author: yc
    * @Date: 2023/2/5 18:23
    */
    Integer getLiFrequency(Comment comment);

    /**
    * @Description: 历史评论人数
    * @Param: * @param null
    * @return:
    * @Author: yc
    * @Date: 2023/2/5 18:23
    */
    List<Comment> getLiPeople(Comment comment);


    /**
    * @Description: 今日评论次数
    * @Param: * @param null
    * @return:
    * @Author: yc
    * @Date: 2023/2/5 18:23
    */
    Integer getJinFrequency(Comment comment);


    /**
    * @Description: 今日评论人数
    * @Param: * @param null
    * @return:
    * @Author: yc
    * @Date: 2023/2/5 18:23
    */
    List<Comment> getJinPeople(Comment comment);

    /**
    * @Description: 通过
    * @Param: * @param null
    * @return:
    * @Author: yc
    * @Date: 2023/2/5 18:30
    */
    int getTongGuo(Comment comment);


    /**
    * @Description: 拦截
    * @Param: * @param null
    * @return:
    * @Author: yc
    * @Date: 2023/2/5 18:31
    */
    int getLanJie(Comment comment);


    /**
    * @Description: 删除
    * @Param: * @param null
    * @return:
    * @Author: yc
    * @Date: 2023/2/5 18:32
    */
    void delComment(Integer id);
}
    